package com.zhe.zheblogmaster.mapper;

import com.zhe.zheblogmaster.entity.BlogCategory;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author WHAOU
 */
@Repository
public interface BlogCategoryMapper {
    List<BlogCategory> selectAllCategories();

    BlogCategory selectByName(String name);

    BlogCategory selectById(Integer categoryId);

    Integer selectCount();

    int updateByIdSelective(BlogCategory category);

    int insertSelective(BlogCategory category);

    int deleteBatch(Integer[] ids);

    // /**
    //  * 根据博客分类id批量查询博客分类对象
    //  *
    //  * @param categoryIds List<Integer> 博客分类id
    //  * @return 查询到的博客分类结果
    //  */
    // List<BlogCategory> selectByCategoryIdBatch(List<Integer> categoryIds);


}
